
function getCruList(route:any) {
  let meta = route.meta;
  let datalist = [];
  let path = route.path;
  let breadCrumbList = []

  breadCrumbList.push({
    title: meta.title,
    path: ''
  })

  if(meta.breadCrumd) {
    datalist = meta.breadCrumd;

    for(let i = 0; i < datalist.length; i++) {
      let item = datalist[i]
      if(path == item.path) {
        breadCrumbList.push(item);
      }
    }
  }
 
  return breadCrumbList;
}

export default getCruList